/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package zombiedefense.effects;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import zombiedefense.map.TileMap;

/**
 * This class defines a type of effect that
 * displays text of a certain font at coordinates onscreen.
 * @author Connor Willison
 */
public class TextEffect extends Effect{

    protected Font font;
    protected String message;
    protected Color color;
    
    public TextEffect(double x,double y,long effectTime,String message,Font font,Color color){
	super(x,y,effectTime);
	this.font = font;
	this.message = message;
	this.color = color;
    }
    
    public void draw(Graphics2D g, int drawx, int drawy, TileMap map) {
	g.setColor(color);
	g.setFont(font);
	g.drawString(message,drawx, drawy);
    }
    
}
